package com.project.grenting.pojo;

import javax.xml.crypto.Data;

public class Order {
    int id;
    String userName; //VARCHAR(100) NOT NULL,
    String mobile; //VARCHAR(20) NOT NULL,
    String userAddress; //VARCHAR(200) NOT NULL,
    Data creationTime; //DATETIME NOT NULL,
    Data updateTime; //DATETIME NOT NULL,
    double totalSum; //DOUBLE(10,1) NOT NULL,
    int payStatus; //INT(10) NOT NULL, #(0未支付,1已支付)
    int orStatus; //INT(10) NOT NULL #(0未完成，1已完成)
    public Order(int id,String userName,String mobile,String userAddress,Data creationTime,Data updateTime,double totalSum,int payStatus,int orStatus){
        this.id=id;
        this.userName=userName;
        this.mobile=mobile;
        this.userAddress=userAddress;
        this.creationTime=creationTime;
        this.updateTime=updateTime;
        this.totalSum=totalSum;
        this.payStatus=payStatus;
        this.orStatus=orStatus;

    };
    public Order(){}

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public Data getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(Data creationTime) {
        this.creationTime = creationTime;
    }

    public Data getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Data updateTime) {
        this.updateTime = updateTime;
    }

    public double getTotalSum() {
        return totalSum;
    }

    public void setTotalSum(double totalSum) {
        this.totalSum = totalSum;
    }

    public int getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(int payStatus) {
        this.payStatus = payStatus;
    }

    public int getOrStatus() {
        return orStatus;
    }

    public void setOrStatus(int orStatus) {
        this.orStatus = orStatus;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", mobile='" + mobile + '\'' +
                ", userAddress='" + userAddress + '\'' +
                ", creationTime=" + creationTime +
                ", updateTime=" + updateTime +
                ", totalSum=" + totalSum +
                ", payStatus=" + payStatus +
                ", orStatus=" + orStatus +
                '}';
    }
}

